import request from '@/utils/request'

// 查询客服务司机规则列表
export function listService(query) {
  return request({
    url: '/vehicleDispatch/service/list',
    method: 'get',
    params: query
  })
}

// 查询客服务司机规则详细
export function getService(ruleId) {
  return request({
    url: '/vehicleDispatch/service/' + ruleId,
    method: 'get'
  })
}

// 新增客服务司机规则
export function addService(data) {
  return request({
    url: '/vehicleDispatch/service',
    method: 'post',
    data: data
  })
}

// 修改客服务司机规则
export function updateService(data) {
  return request({
    url: '/vehicleDispatch/service',
    method: 'put',
    data: data
  })
}

// 删除客服务司机规则
export function delService(ruleId) {
  return request({
    url: '/vehicleDispatch/service/' + ruleId,
    method: 'delete'
  })
}
